/**
 * Created by chenshengli on 2015/7/13 0013.
 */
var moment = require('moment');

exports.stringToDate = function(str){
    var obj = moment(str, "YYYY-MM-DD");
    return obj.toDate();
}